package com.gzwl.uitls;

import java.io.Serializable;
import java.util.List;

/**
 * 

* <p>Title: ResultUtil</p>  

* <p>Description:layui表格分页数据要求的返回字段名封装 </p>  

* @author  layui

* @date 2019年3月29日
 */
public final class ResultUtil<T> implements Serializable {
	
	/**
	 *
	 */
	private static final long serialVersionUID = 7256860100766259048L;
	private Integer code;
	private String msg="";
	private Long count=0L;
	private List<T> data;
	
	@Override
	public String toString() {
		return "ResultUtil [code=" + code + ", msg=" + msg + ", count=" + count + ", data=" + data + "]";
	}

	public ResultUtil() {
		super();
	}

	public ResultUtil(Integer code) {
		super();
		this.code = code;
	}

	public ResultUtil(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}
